package org.bookie.web.pages;

import java.util.List;

import org.apache.tapestry.event.PageBeginRenderListener;
import org.apache.tapestry.event.PageEvent;
import org.bookie.framework.CommonBasePage;
import org.bookie.model.services.UserDAO;

public abstract class UserList extends CommonBasePage implements PageBeginRenderListener{

	public void pageBeginRender(PageEvent event) {
		if(getUsers()==null){
			setUsers(getUserDAO().findAll());
		}
	}
	
	public abstract UserDAO getUserDAO();
	public abstract List getUsers();
	public abstract void setUsers(List users);

}
